package designpatterns.factory;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2022/1/23 13:37
 */
public class App {

    private static final Logger logger = LoggerFactory.getLogger(App.class);

    @Test
    public void test(){
        Car car1 = CarsFactory.getCar(CarType.BAOMA);
        Car car2 = CarsFactory.getCar(CarType.HONGQI);
        logger.info(car1.getCarType());
        logger.info(car2.getCarType());
    }
}
